package com.demo.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 健康码表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "health_code")
public class HealthCode {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 健康码类型：0：绿码，1：黄码，2：红码
     */
    @TableField(value = "health_type")
    private Integer healthType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后一次更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "true_name")
    private String trueName;

    @TableField(value = "id_number")
    private String idNumber;

}